package com.example.consumer;

import com.example.entity.Book;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class Receiver {

    @RabbitListener(queues = "hello")
    public void process(Book book) {
            System.out.println("Receiver: " + book);
    }

}
